<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
    <title>申请发布信息</title>
    <link rel="stylesheet" href="../../front/css/common.css">
    <script type="text/javascript" src="../../front/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../front/js/common.js"></script>
</head>
<body>
<div class="ly_header header2">申请发布信息
    <div class="ly_left goback"><img src="../../front/image/gobackbai.png" alt=""></div>
</div>
<div class="releaselist">
    <div class="dw" style="padding: 15px;">
        <div class="informationname" style="left: 15px;top: 20px;">
            <img class="imgmindw activityimg" src="../../front/newimg/activityleft1.png"  alt="">信息名称
        </div>
        <input class="informationinput" name="infoName" type="text">
    </div>
</div>
<div class="releaselist">
    <div class="dw" style="padding: 15px;">
        <div class="informationname" style="left: 15px;top: 20px;">
            <img class="imgmindw padr5" src="../../front/newimg/hdyaoqiu.png" style="height: 17px;top: 2px;" alt="">信息类别
        </div>
        <input class="informationinput" name="infoType" type="text">
        <span class="dw_r color9 radio udselect" radioshow=".infortype" style="top: 18px;"><img src="../../front/newimg/hdjfxz.png" style="height: 14px;" alt=""></span>
    </div>
</div>
<div class="releaselist">
    <div class="dw" style="padding: 15px;">
        <div class="informationname" style="left: 15px;top: 20px;">
            <img class="imgmindw activityimg" src="../../front/newimg/hdrenshu.png" style="height: 17px;top: 2px;" alt="">联系人
        </div>
        <input class="informationinput" name="contactsName" type="text">
    </div>
</div>
<div class="releaselist">
    <div class="dw" style="padding: 15px;">
        <div class="informationname" style="left: 15px;top: 20px;">
            <img class="imgmindw activityimg" src="../../front/newimg/phone.png" style="height: 17px;top: 2px;" alt="">联系电话
        </div>
        <input class="informationinput" name="contactsPhone" type="text">
    </div>
</div>
<div class="releaselist">
    <div class="dw" style="padding: 15px;">
        <div class="informationname" style="left: 15px;top: 20px;">
            <img class="imgmindw activityimg" src="../../front/newimg/email.png" style="height: 17px;top: 2px;" alt="">邮箱地址
        </div>
        <input class="informationinput" name="email" type="text">
    </div>
</div>
<div class="releaselist">
    <div class="information dw">
        <div class="expendintegral" style="">
            <img class="imgmindw padr5" src="../../front/newimg/pitchon.png" style="height: 12px;" alt="">需要消耗积分
        </div>
    </div>
    <div class="information dw">
        <div class="" style="padding-left: 15px;">
            <img class="imgmindw padr5" src="../../front/newimg/state.png" style="height: 17px;top: 3px;" alt="">消耗积分说明
        </div>
        <textarea maxlength="200" class="inputtext" name="remark"></textarea>
        <div class="text_right padr20 color6" style="font-size: 0.8em;margin-bottom: 10px;"><span class="textnum">0</span>/200</div>
    </div>
</div>
<div class="bottombtn pubinforbrn">
    <img src="../../front/newimg/tjfbxxsqbtn.png" style="height: 49px;width: 100%;" alt="">
</div>
<div id="mask" class="hide" style="z-index: 8"></div>
<div class="hide infortype drop-down" style="z-index: 8">
    <div class="ly_header">信息类别
        <div class="ly_left radiono" radioval="infoType"><img src="../../front/image/no.png" alt=""></div>
        <div class="ly_right radioyes" radioval="infoType"><img src="../../front/image/yes.png" alt=""></div></div>
    <div class="insteadOf"></div>
    <ul class="selectlist radiolist">
        <li dataval="1">招聘信息</li>
        <li dataval="2">企业信息</li>
        <li dataval="3">产品信息</li>
        <li dataval="4">技术信息</li>
        <li dataval="5">服务信息</li>
        <li dataval="6">其他</li>
    </ul>
</div>
</body>
<script type="text/javascript" src="../../front/js/information.js"></script>
<script>
    $('textarea').bind('input propertychange', function(){
        var l=$(this).val().length;
        $(".textnum").text(l)
    });
    $(document).on("click",".pubinforbrn",function(){
        var data={};
        data.infoName=$("input[name='infoName']").val();
        data.infoType=$("input[name='infoType']").val();
        data.contactsName=$("input[name='contactsName']").val();
        data.contactsPhone=$("input[name='contactsPhone']").val();
        data.email=$("input[name='email']").val();
        data.remark=$("textarea[name='remark']").val();
        $.ajax({
            url: "/tiance/front/publishInfo/addPublishInfo.action",
            type: "post",
            data: data, //发送数据,
            dataType: "json",
            async: false,
             success: function(data){
                if(data.success){
                    window.location.href='toPubmessage.action';
                }else{
                    alert('data.message！')
                }
             },
             error:function(){
                alert()
             }
         });
    })
</script>
</html>